package org.budo.jdbc.driver.statement;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import org.budo.jdbc.driver.parser.SqlStatement;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

/**
 * @author lmw
 */
@Slf4j
@Getter
@Setter
@Accessors(chain = true)
public abstract class AbstractJdbcStatement implements JdbcStatement {
    private SqlStatement sqlStatement;

    private String sql;

    @Override
    public void execute(PreparedStatement preparedStatement) throws SQLException {
        log.error("#29 this=" + this + ", preparedStatement=" + preparedStatement);

        throw new RuntimeException("#30 this=" + this + ", preparedStatement=" + preparedStatement);
    }
}